package cn.csc.module.order.controller.admin.order.vo;

import cn.csc.framework.common.pojo.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("管理后台 - 订单信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderPageReqVO extends PageParam {

    @ApiModelProperty(value = "订单Id")
    private BigInteger id;

    @ApiModelProperty(value = "产品名称")
    private String spuName;

    @ApiModelProperty(value = "买家手机号")
    private String memberPhone;

    @ApiModelProperty(value = "付款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] payTime;
    @ApiModelProperty(value = "付款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime startPayTime;
    @ApiModelProperty(value = "付款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endPayTime;

    @ApiModelProperty(value = "商户编码")
    private BigInteger shopId;

    @ApiModelProperty(value = "商户名称")
    private String shopName;

    @ApiModelProperty(value = "查询订单状态 ,1待发货,2待收货,3订单完成,4全部")
    private Integer orderStatus;

    @ApiModelProperty(value = "用户id")
    private BigInteger userId;

    @ApiModelProperty(value = "订单类型 0普通订单，1采购商订单")
    private Integer orderType;
    @ApiModelProperty(value = "支付类型，0微信支付、1购物卡支付、2结合支付")
    private Integer payType;

}
